package com.stone.stoneanswer.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.stone.stoneanswer.common.DeleteRequest;
import com.stone.stoneanswer.model.dto.questionbank.QuestionBankGetRequest;
import com.stone.stoneanswer.model.dto.questionbank.QuestionBankRecommendRequest;
import com.stone.stoneanswer.model.entity.QuestionBank;
import com.stone.stoneanswer.model.vo.QuestionBankVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author 35431
* @description 针对表【question_bank(题库表)】的数据库操作Service
* @createDate 2025-02-05 18:21:12
*/
public interface QuestionBankService extends IService<QuestionBank> {

    QuestionBankVO getQuestionBankVO(QuestionBank questionBank, HttpServletRequest request);

    QueryWrapper<QuestionBank> getQueryWrapper(QuestionBankGetRequest questionBankGetRequest);

    Page<QuestionBankVO> getQuestionBankVOPage(Page<QuestionBank> questionBankPage, HttpServletRequest request);

    Boolean deleteBatchQuestionBank(DeleteRequest deleteRequest);

    Page<QuestionBankVO> listQuestionBankVOByRecommend(QuestionBankRecommendRequest questionBankRecommendRequest, HttpServletRequest request);
}
